import Vue from 'vue'
import Router from 'vue-router'
import Auth from './auth.route'
import Ufdm from './ufdm.route'
import Actflow from './actflow.route'
import Bizflow from './bizflow.route'

const Login = resolve => require(['../components/common/login'], resolve)
const Home = resolve => require(['../components/common/home'], resolve)
const NotFount = resolve => require(['../components/common/404'], resolve)

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/login', component: Login },
    { path: '/', component: Login },
    { path: '/home', component: Home,
      children:[
        ...Auth,
        ...Ufdm,
        ...Actflow,
        ...Bizflow,
      ]
    }
  ]
})

